# 单词逆序
def reverseWords(s: str):
    tokens = s.split(' ')
    print(tokens)
    tokens.reverse()
    print(tokens)
    return ' '.join(tokens)


result = reverseWords('I am a student.')
print(result)
